import request from "@/utils/request";

// 获取直播流
export function getLiveStreamApi(liveId) {
  return request({
    url: `/lb/live/info/findById/${liveId}`,
    method: 'get',
  });
}

//#region 关注
//  查看是否关注直播间
export function getLiveIsFollowApi(liveRoomId) {
  return request({
    url: `/lb/live/isFollow/${liveRoomId}`,
    method: 'get',
  });
}
// 添加关注
export function addLiveIsFollowApi(data) {
  return request({
    url: `/lb/live/follow`,
    method: 'post',
    data
  });
}

// 取消关注
export function deleteLiveIsFollowApi(data) {
  return request({
    url: `/lb/live/unfollow`,
    method: 'post',
    data
  });
}
//#endregion

//#region 评论
// 发送评论
export function addLiveCommentApi(data) {
  return request({
    url: `/lb/live/comment/info/add`,
    method: 'post',
    data
  });
}
//#endregion

//#region 直播设置
// 直播间信息
export function getLiveRoomInfoApi(liveRoomId) {
  return request({
    url: `/lb/liveBroadcastRoom/findById/${liveRoomId}`,
    method: 'get',
  });
}
// 直播页面互动
export function getLiveLookSetPageInteractionApi(liveId) {
  return request({
    url: `/lb/live/singleWatchInteraction/findByLiveId/${liveId}`,
    method: 'get',
  })
}
// 观看页设置
export function getLiveLookSetPageInfoApi(liveId) {
  return request({
    url: `/lb/live/watchPageInfo/findByLiveId/${liveId}`,
    method: 'get',
  })
}
//#endregion

